﻿function detail() {
    master.call(this);
}
var forDetail = new detail();
var options = {
    zoom: function() {
        $('.mainView').jqzoom({ zoomType: 'standard', title: false });
    }, //zoom
    counts: function() {
        var count = $(".counts input").val();
        $(".counts .prev").click(function() { if (count == 1) { count = 1; } else { count--; } $(".counts input").val(count); });
        $(".counts .next").click(function() { count++; $(".counts input").val(count); });
    }, //counts
    chooseAcc: function() {
        $(".mounIntro input").click(function() {
            var checkbox = $(this);
            if (checkbox.attr("checked") == "checked") { checkbox.parent().parent().find(".mounPic").addClass("mounPicCurrent"); }
            else {checkbox.parent().parent().find(".mounPic").removeClass("mounPicCurrent");}
        });
    }//chooseAcc
}
    $.extend(detail.prototype, options);
    forDetail.zoom();
    forDetail.toggleClass(".chooseColor", { className: "current", action: "click" });
    forDetail.toggleClass(".chooseSet", { className: "current", action: "click" });
    forDetail.counts();
    forDetail.chooseAcc();
    forDetail.photoGallery(".otherPhoneList", { size: "5" });
    forDetail.toggleClass(".otherPhoneList ul", { className: "moveLiCurrent", action: "hover" });